import Vue from 'vue';
import App from './App';
// import VueRouter from 'vue-router'
import router from './router';//自动扫描目录中路由的配置

//import { Button, Select } from 'element-ui';//引入ElementUI
import { Select, Option, OptionGroup, Input, Tree, Dialog, Row, Col } from 'element-ui';//引入ElementUI
import 'element-ui/lib/theme-chalk/index.css'
import { Button, Select } from 'element-ui';
/*//显示的声明使用VueRouter
Vue.use(VueRouter) 也可以使用如下方式来使用*/
Vue.use(Button)
Vue.use(Select)
Vue.use(Option)
Vue.use(OptionGroup)
Vue.use(Input)
Vue.use(Tree)
Vue.use(Dialog)
Vue.use(Row)
Vue.use(Col)

new Vue({
  el: '#app',
  //启用路由
  router,
  components: { App },
  template: '<App/>',
  render: h => h(App)
});
